package edu.tongji.jiaowu.webapp.action;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

import edu.tongji.jiaowu.service.BasicDataManager;

public class StudentController extends MultiActionController {
	private BasicDataManager basicDataManager;

	
	public ModelAndView direction(HttpServletRequest request, HttpServletResponse response){
		Map model=basicDataManager.gradeMajorWithDirectionMap();
		
		return new ModelAndView("student/direction/direction","model",model);
	}
	public ModelAndView schoolClass(HttpServletRequest request, HttpServletResponse response){
		Map model=basicDataManager.gradeMajorWithClassMap();
		
		return new ModelAndView("student/schoolClass/schoolClass","model",model);
	}
	
	


	public BasicDataManager getBasicDataManager() {
		return basicDataManager;
	}


	public void setBasicDataManager(BasicDataManager basicDataManager) {
		this.basicDataManager = basicDataManager;
	}
}
